package com.etoak.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Checklist库审核实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("checklist_approve")
public class CheckListApprove {

    @TableField("id")
    private String id;

    @TableField("knowledge_id")
    private String knowledgeId;

    @TableField("approve_by")
    private String approveBy;

    @TableField("approve_opinion")
    private String approveOpinion;

    @TableField("approve_status")
    private String approveStatus;

    @TableField("approve_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    @TableField("approve_node")
    private String approveNode;

    @TableField("next_node")
    private String nextNode;

    @TableField("approve_type")
    private String approveType;

    @TableField("del_status")
    private String delStatus;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private String[] approveTypes;

}
